package com.mycat.rmi;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

/**
 * RMI接口服务实现
 * @author Roger
 */
public class HelloServiceImpl extends UnicastRemoteObject implements HelloService{

	private static final long serialVersionUID = 1499001291097663628L;

	/**
	 * 必须
	 * @throws RemoteException
	 */
	public HelloServiceImpl() throws RemoteException {
	}

	@Override
	public String sayHello(String name) {
		System.out.println(name);
		return String.format("Hello %s", name);
	}

}
